package com.gz.domain;

import java.time.LocalDateTime;
import java.util.Date;

public class Bill {
    /**
     * id int PRIMARY key auto_increment,#自增
     * billId varchar(50) not NULL DEFAULT '',#账单号
     * menuId int NOT NULL DEFAULT 0 ,#菜品编号
     * nums int not NULL DEFAULT 0,#数量 份量
     * money double not NULL DEFAULT 0,#金额
     * diningTableId int not null DEFAULT 0, #餐桌号
     * billDate datetime not null,#订单日期
     * state varchar(50) not null DEFAULT ''
     */
    private int id;
    private String billId;
    private int menuId;
    private int nums;
    private double money;
    private int diningTableId;
    private LocalDateTime billDate;
    private String state;

    public Bill(){}

    @Override
    public String toString() {
        return id+
                "\t\t"+menuId+
                "\t\t\t"+nums+
                "\t\t\t"+money+
                "\t"+diningTableId+
                "\t\t"+billDate+
                "\t\t\t"+state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public int getMenuId() {
        return menuId;
    }

    public void setMenuId(int menuId) {
        this.menuId = menuId;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getDiningTableId() {
        return diningTableId;
    }

    public void setDiningTableId(int diningTableId) {
        this.diningTableId = diningTableId;
    }

    public LocalDateTime getBillDate() {
        return billDate;
    }

    public void setBillDate(LocalDateTime billDate) {
        this.billDate = billDate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Bill(int id, String billId, int menuId, int nums, double money, int diningTableId, LocalDateTime billDate, String state) {
        this.id = id;
        this.billId = billId;
        this.menuId = menuId;
        this.nums = nums;
        this.money = money;
        this.diningTableId = diningTableId;
        this.billDate = billDate;
        this.state = state;
    }
}
